package edu.siu.math.egut.functions;

import java.lang.reflect.InvocationTargetException;

import edu.siu.math.egut.lie.AbstractEgutFunction;
import edu.siu.math.egut.lie.AbstractLiEObject;
import edu.siu.math.egut.lie.LiEText;
import edu.siu.math.egut.lie.LiEType;
import edu.siu.math.egut.lie.NonExceptionalGroupException;

/**
 * A dummy function for fiddling with the interpreter.
 * 
 * @author josephhundley
 *
 */
public class Dummy extends AbstractEgutFunction {
    
    public LiEType[] argList() {
	LiEType[] result = new LiEType[1];
	result[0]=LiEType.TEX;
	return result;
    }

    public void run() {
	// doesn't do anything...
	AbstractLiEObject[] args;
	try{
	    
	    args =this.getData();
	} catch (IllegalArgumentException e) {
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	} catch (InstantiationException e) {
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	} catch (IllegalAccessException e) {
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	} catch (InvocationTargetException e) {
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	} catch (NonExceptionalGroupException e) {
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	}
	finally{
	    
	   // do nothing
	}
	
	this.setData(new LiEText("hello").toString());
    }

}
